﻿using Microsoft.AspNetCore.Http;
using System;
using System.Threading.Tasks;

namespace Batman.Core.Middlewares
{
    public abstract class MiddlewareBase
    {
        protected readonly RequestDelegate _next;

        public MiddlewareBase(RequestDelegate next)
        {
            _next = next;
        }

        public virtual async Task Invoke(HttpContext context)
        {
            throw new NotImplementedException();
        }

    }
}
